<template>
  <div>
    <div>
      <TableCompEle v-loading="loading" :tableData="tableData" :isSelect="false" :isPageIndex="true" :isShowPage="true" :tableConfig="tableConfig"
        :queryParams="queryParams" @getPagination="paginationSize" />
    </div>
  </div>
</template>

<script>
// import { getSystemLogList } from '@/api/log.js'
export default {
  name: 'LogUserLog',
  data() {
    return {
      loading: false,
      tableData: [],
      tableConfig: [
        {
          prop: 'slExceptionProblem',
          label: '异常问题'
        },
        {
          prop: 'slOperatorTime',
          label: '发现时间'
        },
        // {
        //   prop: 'slSolveTime',
        //   label: '解决时间'
        // },
        // {
        //   prop: 'slProcess',
        //   label: '处理过程'
        // },
        // {
        //   prop: 'slProcessResult',
        //   label: '处理结果'
        // }
      ],
      queryParams: {
        total: 0,
        currentPage: 1,
        pageSize: 10,
      },
    }
  },
  created() {
    this.initData()
  },
  methods: {
    initData() {
      let res = {
        "code": 200,
        "total": 151,
        "rows": [
          {
            "id": 300667,
            "slExceptionProblem": "创建设施异常",
            "slOperatorTime": "2024-01-22 10:35:17",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 300666,
            "slExceptionProblem": "创建设施异常",
            "slOperatorTime": "2024-01-22 10:35:06",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298813,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:26:56",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298812,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:26:53",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298810,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:23:01",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298808,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:14:59",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298806,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:14:32",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298797,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-17 09:06:31",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298795,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-16 23:18:58",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          },
          {
            "id": 298792,
            "slExceptionProblem": "共享信息管理访问异常",
            "slOperatorTime": "2024-01-16 23:15:33",
            "slSolveTime": null,
            "slProcess": "",
            "slProcessResult": ""
          }
        ]
      }
      // this.loading = true
      // const params = {
      //   currentPage: this.queryParams.currentPage,
      //   pageSize: this.queryParams.pageSize
      // }
      // getSystemLogList(params).then((res) => {
      this.tableData = res.rows
      this.queryParams.total = res.total
      // })
      //   .finally(() => {
      //     // this.loading = false
      //   })
    },
    paginationSize() {
      this.queryParams.currentPage = 1
      this.initData()
    }
  }
}
</script>

<style></style>
